import request from "./http";
//公共

// 字典表查询公共方法,并判断vuex中是否存在总字典表 /system/dict/data/dictList/
export function getDetailedList(query) {
  return request({
    url: `/system/dict/data/dictList/${query}`,
    method: "GET"
  });
}

// 获取图片验证码 captchaImage
export function getCaptchaImage() {
  return request({
    url: `/captchaImage`,
    method: "GET"
  });
}

// 获取手机验证码 sendAuthCode
export function getAuthCode(data) {
  return request({
    url: `/company/sendAuthCode`,
    method: "POST",
    data
  });
}

// 获取企业用户信息
export function getCompanyInfo(params) {
  return request({
    url: `/company/profile/getCompanyInfo`,
    method: "GET",
    params
  });
}

// 验证手机验证码 verifyAuthCode
export function verifyAuthCode(data) {
  return request({
    url: `/company/verifyAuthCode`,
    method: "POST",
    data
  });
}

// 获取文件列表
export function getFileList(params) {
  return request({
    url: '/system/file/list',
    method: 'GET',
    params
  })
}
